package com.jmu.employee;

import java.util.Comparator;

public class AgeComparator implements Comparator<Staff> {
    @Override
    public int compare(Staff o1, Staff o2) {
        return o1.getAge() - o2.getAge();
    }

}
